<div>
    <form >
        <input type="text" placeholder="用户名称"  ng-model="user.name">
        <input type="password" ng-model="user.pwd" placeholder="密码" >
        <button ng-click="regist()">注册</button>
    </form>
</div>